//
//  ConsCell.m
//  11214
//
//  Created by student on 16/3/8.
//  Copyright © 2016年 niit. All rights reserved.
//

#import "ConsCell.h"



@implementation ConsCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setCons:(ConsModel *)cons{
    _cons=cons;
    //@property(nonatomic,strong)NSString *image,*Name,*Forture,*Text,*Date;
    self.iconImageView.image=[UIImage imageNamed:cons.image];
    self.nameLable.text=cons.Name;
    self.furtureImageView.image=[UIImage imageNamed:cons.Fortune];
    self.contentLable.text=cons.Text;
    self.dateLable.text=cons.Date;
    
}

@end
